<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		[#include "/html/include/easyuicss.html" /]
		[#include "/html/include/easyuijs.html" /]
		<script type="text/javascript" src="${app }/static/js/common.utils.js"></script>
	</head>
	<body class="easyui-layout" data-options="fit:true" style="overflow-y: hidden">
	<input type="hidden" id="accountId" name="accountId" value="${RequestParameters['accountId']}" />
	<input type="hidden" id="id" name="id" value="${RequestParameters['id']}" />
	<table id="dgtable" class="easyui-datagrid" style="width:100%;height:100%;">
		<thead>
		<tr>
			<th data-options="field:'id',width:40">编号</th>
			<th data-options="field:'open_id',width:50">用户唯一标识</th>
			<th data-options="field:'nick_name',width:20">昵称</th>
			<th data-options="field:'prize',width:20">奖项</th>
			<th data-options="field:'mobile',width:20">手机号码</th>
			<th data-options="field:'add_time',width:30">抽奖时间</th>
		</tr>
		</thead>
	</table>
	<div id="tb">
		<span>昵称:</span>
		<input  class="easyui-textbox" id="nickName" name="nickName" />
		<span>手机号码:</span>
		<input  class="easyui-textbox" id="mobile" name="mobile" />
		<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="showList();">查询</a>
	</div>
	</body>
    <script type="text/javascript">
		$(document).ready(function(){
			$('#dgtable').datagrid({
				url: '${app}/weixin/huodong/hdPrizeList.do',
				method: 'post',
				queryParams: {accountId: $('#accountId').val(),id: $('#id').val()},
				singleSelect: true,
                fitColumns: true,
				toolbar: '#tb',
				pagination: true,
				pageSize: 20,
				pageList: [10,20,30]
			});
		});
		function showList(){
			$('#dgtable').datagrid('load', {
				accountId: $('#accountId').val(),
				id: $('#id').val(),
				nickName: $('#nickName').val(),
				mobile: $('#mobile').val()
			});
		}
    </script>
</html>